<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>后台管理系统</title>
<meta name="author" content="DeathGhost" />
<link rel="stylesheet" type="text/css" href="/Project/Public/Admin/css/style1.css">
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<script src="/Project/Public/Admin/js/jquery-1.8.2.min.js"></script>
<script src="/Project/Public/Admin/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>

  (function($){
    $(window).load(function(){
      
      $("a[rel='load-content']").click(function(e){
        e.preventDefault();
        var url=$(this).attr("href");
        $.get(url,function(data){
          $(".content .mCSB_container").append(data); //load new content inside .mCSB_container
          //scroll-to appended content 
          $(".content").mCustomScrollbar("scrollTo","h2:last");
        });
      });
      
      $(".content").delegate("a[href='top'   ]","click",function(e){
        e.preventDefault();
        $(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
      });
      
    });
  })(jQuery);
</script>
</head>
<body>
<!--header-->
<header>
 <h1><img src="/Project/Public/Admin/images/admin_logo.png"/></h1>
 <ul class="rt_nav">
  <li><a href="<?php echo U('Admin/Index/index');?>" target="_blank" class="website_icon">站点首页</a></li>
  <li><a href="#" class="clear_icon">清除缓存</a></li>
  <li><a href="#" class="admin_icon"><?php echo (session('manager_username')); ?></a></li>
  <li><a href="#" class="set_icon">账号设置</a></li>
  <li><a href="<?php echo U('Admin/Login/index');?>" class="quit_icon">安全退出</a></li>
 </ul>
</header>
<!--aside nav-->
<aside class="lt_aside_nav content mCustomScrollbar">
 <h2><a href="<?php echo U('Admin/Index/index');?>">起始页</a></h2>
 <ul>
  <li>
   <dl>
    <dt>分类管理</dt>
    <!--当前链接则添加class:active-->
    <dd><a href="<?php echo U('Admin/Type/add');?>" class="active">商品添加分类</a></dd>
    <dd><a href="<?php echo U('Admin/Type/oper');?>">商品分类管理</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>商品管理</dt>
    <!--当前链接则添加class:active-->
    <dd><a href="<?php echo U('Admin/Product/lister');?>" class="active">商品列表</a></dd>
    <dd><a href="<?php echo U('Admin/Product/add');?>">商品添加管理</a></dd>
    <dd><a href="<?php echo U('Admin/Product/bin');?>">商品回收站</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>订单信息</dt>
    <dd><a href="<?php echo U('Admin/Order/lister');?>">订单列表示例</a></dd>
    <dd><a href="<?php echo U('Admin/Order/detail');?>">订单详情示例</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>权限管理</dt>
    <dd><a href="user_list.html">会员列表示例</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>基础设置</dt>
    <dd><a href="setting.html">站点基础设置示例</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>配送与支付设置</dt>
    <dd><a href="<?php echo U('Admin/Express/lister');?>">配送方式</a></dd>
    <dd><a href="<?php echo U('Admin/Express/lister');?>">支付方式</a></dd>
   </dl>
  </li>
  <li>
   <dl>
    <dt>在线统计</dt>
    <dd><a href="discharge_statistic.html">流量统计</a></dd>
    <dd><a href="sales_volume.html">销售额统计</a></dd>
   </dl>
  </li>
  <li>
   <p class="btm_infor">© DeathGhost.cn 版权所有</p>
  </li>
 </ul>
</aside>

<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">
      <div class="page_title">
       <h2 class="fl">商品添加分类</h2>
       <a href="<?php echo U('Admin/Type/add');?>" class="fr top_rt_btn add_icon">添加分类</a>
      </div>
      <form action="/Project/index.php/Admin/Type/save" method="post">
      <table class="table">
       <tr>
         <td>名称</td>
         <td><input type="text" name="typename"></td>
       </tr>
       <tr>
        <td>父分类</td>
        <td>
          <select name="fid">
             <option value="0">顶级</option>
               <?php echo ($optionstr); ?>
          </select>
        </td>
       </tr>
       <tr>
         <td colspan="2" class="center"><input type="submit" value="提交"/></td>
       </tr>
      </table>
      </form>
 </div>
</section>
</body>
</html>